<?php


namespace app\model;

use app\library\traits\CommonModel;
use \think\Model as BaseModel;

class Model extends BaseModel
{
    use CommonModel;

    //业务逻辑提示名字
    protected $noticeName;

    //自动维护时间戳插入
    protected $autoWriteTimestamp = true;

    // 数据转换为驼峰命名
    protected $convertNameToCamel = true;

    protected $createTime = 'created_at';

    protected $deleteTime = 'deleted_at';

    //更新该model规则消息提示
    protected $message = [];
    //允许更新的数据库字段
    protected $updateFields = [];

    //插入数据的验证规则
    protected $insertRule = [];

    //创建该model规则
    protected $updateRule = [];

//    protected $updateTime = 'updated_at';

}